import request from '@/router/axios'

export function fetchWxPromotePosterList(query) {
  return request({
    url: '/mp/wxpromoteposter/page',
    method: 'get',
    params: query
  })
}

export function addWxPromotePosterObj(obj) {
  return request({
    url: '/mp/wxpromoteposter',
    method: 'post',
    data: obj
  })
}

export function getWxPromotePosterObj(id) {
  return request({
    url: '/mp/wxpromoteposter/' + id,
    method: 'get'
  })
}

export function delWxPromotePosterObj(id) {
  return request({
    url: '/mp/wxpromoteposter/' + id,
    method: 'delete'
  })
}

export function putWxPromotePosterObj(obj) {
  return request({
    url: '/mp/wxpromoteposter',
    method: 'put',
    data: obj
  })
}
